package com.GlobalPaint.app.utils;

import android.os.Environment;

import java.io.File;

public class Constants {
    // 默认存放图片的路径
    public final static String DEFAULT_SAVE_IMAGE_PATH = Environment
            .getExternalStorageDirectory()
            + File.separator
            + "PangXie"
            + File.separator + "oss_img" + File.separator;
    public static final String ver = "0.2";
    public static final String source = "app_rygj_jz";
    public static final String OSS_KEY_ID = "LTAIcZpSaa1Wcs1M";
    public static final String OSS_KEY_SECRET = "mLVI7cEvyDkCg2tdlgK15nY7Tcz5EP";
    public static final String OSS_REGION_QINGDAO = "";
    public static final String OSS_bucketName = "ras-data";
    public static final String OSS_END_POINT = "http://oss-cn-shanghai.aliyuncs.com";
    public static final String OSS_END_POINT_DOWNLOAD = "";
    public static final String ACS_ROLE_ARN = "acs:ram::1432704025964894:role/yzb-oss-role";
    public static final int OSS_expiration = 2 * 60 * 60 * 1000;
  //public static String JASON_SERVICE_URL = "http://api.yezhubao.net";//web url
    //public static String JASON_SERVICE_URL = "http://192.168.1.206:8080/ras";
  public static String JASON_SERVICE_URL = "http://47.93.243.223:8080";
    public static String JASON_SERVICE_Img = "http://demo.jspxcms.com"; //图片地址
    public static final int DEFAULT_PAGE_SIZE = 10;//
    public static final int DEFAULT_RECOMMEND_NUM = 6;
    public static final int DEFAULT_IMAGE_SELECTED_NUM = 6;//图片选择数量
    public static final int TOKEN_LEN = 32;
    public static final String TOKEN_INVALID = "invalid token";
    public static final String TOKEN_EXPIRED = "expired token";
    public static final String TAG_ALL = "all";
    public static final String PARAMNAME = "category";

    public static final String CODETYPE_SMS = "sms";
    public static final String CODETYPE_AUTH = "auth";

    public static final int CODE_INTERNAL_ERROR = -1;        // 500 internal error
    public static final int CODE_SUCCESS = 0;        // all success operation
    public static final int CODE_USER_NON_EXIST = 1;
    public static final int CODE_WRONG_PASSWORD = 2;
    public static final int CODE_MOBILE_REGISTERED = 3;        // mobile had been registered
    public static final int CODE_INVALID_SMSCODE = 4;        // invalid sms code
    public static final int CODE_STILL_VALID = 5;        // last sms or auth code is still valid
    public static final int CODE_EXCEED_LIMIT = 6;        // exceed limit for sms request
    public static final int CODE_EXPIRED_SMSCODE = 7;        // expired sms code
    public static final int CODE_INVALID_PARAMS = 10;        // parameters are null or invalid

    public static final String MSG_NOT_FIND = "not_find_specified_entry";
    public static final String MSG_NO_PSERMISSION = "no_permission";

    public static final byte TRUE = 1;
    public static final byte FALSE = 0;

    public static final int SMS_LIST = 50;

    public static final String BUCKET_DATA = "ras-data";
    public static final String BUCKET_DATA_UPDATE = "yzb-update";
    public static final int AUTHCODE_MOBILE = 1;        //手机验证码
    public static final int AUTHCODE_INVITE = 2;        //邀请码
    public static final int AUTHCODE_LOGIN = 3;        //登录验证码


    public static final int PAGE_UP = 0;         //向上，加载历史
    public static final int PAGE_DOWN = 1;         //向下，加载最新

    public static final int NETWORK_ERROR = 1000;        //http接口调用网络错误
    public static final int PARAM_ERROR = 1001;        //token为空错误
    // wifi缓存时间为1天
    public static long wifi_cache_time = 5 * 60 * 1000;//24 * 60 * 60 * 1000;
    // 其他网络环境为1天
    public static long other_cache_time = 5 * 60 * 1000;
    //缓存名称定义
    public final static String Advert_List = "Advert_List";//广告列表
    public final static String key = "qingdaoyezhubao";
    //功能定义


}
